#ifndef TEXTEDIT_H
#define TEXTEDIT_H

#include <QObject>
#include <QTextEdit>

QT_BEGIN_NAMESPACE
class QFocusEvent;
QT_END_NAMESPACE

class TextEdit : public QTextEdit
{
    Q_OBJECT
    
public:

    TextEdit( QWidget * parent = 0 );

signals:

    void editingFinished();
    
private slots:

    void textHasChanged();
    
protected:

    void focusOutEvent( QFocusEvent * e );
    
private:
    
    bool hasChanged;

};

#endif